package com.dana1.nos.generator;

import java.io.Serializable;
import java.util.UUID;

import com.dana1.nos.Generator;

public class UUIDTimestampGenerator implements Generator
{
	private static final TimeBasedUUIDGenerator tbu = new TimeBasedUUIDGenerator(); 
	
	@Override
	public Object nextValue(Class<? extends Serializable> generatedFor)
	{
		return ((UUID)tbu.nextValue(null)).timestamp();
	}

}
